import request from '@/utils/request'
import apis from '@/api'

export function getCartList (parameter) {
  return request({
    url: apis.GetCart,
    method: 'get',
    params: parameter
  })
}

export function addCart (data) {
  return request({
    url: apis.AddCart,
    method: 'post',
    data: data
  })
}

export function delCart (id) {
  return request({
    url: `${apis.DelCart}?sid=${id}`,
    method: 'get'
  })
}
